2006-12-22 Matthias Clasen <mclasen@redhat.com>
* configure.in: Check for getc_unlocked.
* gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
unavailable. (#381499)
2006-12-22 Matthias Clasen <mclasen@redhat.com>
+
+ * configure.in: Check for getc_unlocked.
+
+ * gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
+ unavailable. (#381499)
* tests/teststatusicon.c: Fix a typo
fi
AC_SUBST(REBUILD)
-AC_CHECK_FUNCS(lstat mkstemp flockfile)
+AC_CHECK_FUNCS(lstat mkstemp flockfile getc_unlocked)
# _NL_TIME_FIRST_WEEKDAY is an enum and not a define
AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY])
#define TRUE (!FALSE)
#endif
+#if !defined getc_unlocked && !defined HAVE_GETC_UNLOCKED
+# define getc_unlocked(fp) getc (fp)
+#endif
+
typedef struct XdgMimeMagicMatch XdgMimeMagicMatch;
typedef struct XdgMimeMagicMatchlet XdgMimeMagicMatchlet;